package Operate;

import Book.BookList;

//显示图书
public class DisplayOperate implements IOOperate{
    @Override
    public void work(BookList bookList) {
        System.out.println("Display");
        //获取书架书籍个数
        int bookSize = bookList.getBookNumber();
        //遍历书架，将书籍信息打印出来
        for (int i = 0; i < bookSize; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
